package com.yasaka.stock.hrstrix;

import com.yasaka.stock.feign.MlpFeignClient;
import com.yasaka.stock.model.TWebResult;
import com.yasaka.stock.service.MlpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class HystrixFeignFallback implements MlpFeignClient {
//    @Override
//    public User getUser(String id) {
//        User user = new User();
//        user.setId("233");
//        return user;
//    }
//
    @Autowired
    private MlpService mlpService;

    @Override
    public TWebResult getOnLineCountWord(String aText) {
        return mlpService.getOnLineCountWord(aText);
    }
}